﻿using System;
using System.Xml.Serialization;

namespace SalesSys.DAL.Models
{
  public  interface IEmployee
    {
      Guid Id { get; }
        DateTime? Birthday { get;   }
        Employee Creater { get;   }
        DateTime CreateTime { get;   }
        Department Department { get;   }
        string IDCard { get;   }
        bool IsConfirm { get;   }
        bool IsLeave { get;   }
        bool IsLock { get;   }
        bool IsRole(string role);
        string LoginName { get;   }
      [XmlIgnore]
        string LoginPwd { get;   }
        string Name { get;   }
        string Phone { get;   }
        string Roles { get;   }
        string SetRoles(params string[] roleList);
        string[] GetRoles();
    }
}
